package org.bingo.repository;

import org.bingo.entity.User;
import org.bingo.entity.Video;
import org.bingo.entity.VideoType;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface VideoRepository extends JpaRepository<Video, Long> {
    List<Video> findByTitleLike(String title);
    Page<Video> findByVideoType(VideoType videoType, Pageable pageable);
    List<Video> findByUser(User user);
//    List<Video> findByLikedUser(User user);
//    List<Video> findByCollectedUser(User user);
}
